import java.util.concurrent.atomic.AtomicInteger;

import org.jsoup.Connection;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;

public class Walk extends Thread {

	private static AtomicInteger ai = new AtomicInteger(0);

	public void run() {

		String url = "http://voice.hupu.com/pkding?pkid=76&userid=16664171&party=b&format=json&jsoncallback=jsonp1354798741831";
		for (int i = 0; i < 1000000; i++) {
			try {
				Connection c = Jsoup.connect(url);
				c.get();
				System.out.println(i);
			} catch (Exception e) {
				System.out.println(e.getMessage());
			}
		}
	}

	public static void main(String[] args) {
		new Walk().start();
		new Walk().start();
		new Walk().start();
		new Walk().start();
		new Walk().start();
		new Walk().start();
		new Walk().start();
		new Walk().start();
		new Walk().start();

	}
}
